<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>docsify-template</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="description" content="Description">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
  <meta name="renderer" content="webkit">
  <link rel="stylesheet" href="//gcore.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
  <link rel="stylesheet" href="static/css/ext.css">
<link rel="stylesheet" href="static/css/prism.css">

  <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
  <!--[if lt IE 9]>
    <script src="https://gcore.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://gcore.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
  <link rel="apple-touch-icon" sizes="180x180" href="static/icon/apple-touch-icon.png">
  <link rel="icon" type="image/png" sizes="32x32" href="static/icon/favicon-32x32.png">
  <link rel="icon" type="image/png" sizes="16x16" href="static/icon/favicon-16x16.png">
  <link rel="manifest" href="static/icon/site.webmanifest">
</head>
<body>
  <div id="app">加载中……</div>
  <script>
    window.$docsify = {
      name: 'CSP Wiki<span class="mg-badge">1.1.0</span>',
      repo: '',
      coverpage: true,
      loadNavbar: true,
      loadSidebar: true,
      autoHeader: true,
      onlyCover: false,
      routerMode: 'hash',
      subMaxLevel: 5,
      //basePath: 'http://mg.meiflower.top/',
      sidebarDisplayLevel: 5, // set sidebar display level
      count:{
        countable:true,
        fontsize:'0.9em',
        color:'rgb(90,90,90)',
        language:'chinese'
      },
    //  <!--  全文搜索配置项-->
		search: {
			paths: 'auto',
			placeholder: '搜索',
			noData: '找不到结果',
			depth: 4,
		},
    //   copyCode: {
    //     buttonText : '点击复制',
    //     errorText  : '错误',
    //     successText: '复制成功'
    //   },
    //   footer: {
    //     copy: '<span>mango mei &copy; 2023</span>',
    //     auth: '粤ICP备17082965号',
    //     pre: '',
    //     style: 'text-align: center;',
    //     class: 'className'
    //   },
      vueComponents: {},// 可自定义
      timeUpdater: {
        text: "<div align='right' width='100%' style='color:gray;font-size:16px;margin-top:10px;'>最后更新时间: {docsify-updated}</div>",
        formatUpdated: "{YYYY}-{MM}-{DD} {HH}:{mm}",
      },
      // note tip warning attention https://github.com/fzankl/docsify-plugin-flexible-alerts
      'flexible-alerts': {
        style: 'callout'
      },
      progress: {
          position: "top",
          color: "var(--theme-color,#42b983)",
          height: "3px",
      },
      tabs: {
        persist    : true,      // default
        sync       : true,      // default
        theme      : 'classic', // default
        tabComments: true,      // default
        tabHeadings: true       // default
      },
      docsifyBackTop: {
        size: 32,           	// 数值，组件大小，默认值32。
        bottom: 15,         	// 数值，组件底部偏移距离，默认值15。
        right: 15,          	// 数值，组件右侧偏移距离，默认值15。
        logo: 'top',				// logo:字符串或svg矢量图代码，默认为svg代码图标。
        bgColor: '#42b983'    	// 背景颜色，#fff、pink等，logo为svg图标时，不填。
      },
      // docsify-plugin-toc
    //   toc: {
    //     tocMaxLevel: 5,
    //     target: 'h1, h2, h3, h4, h5',
    //     ignoreHeaders:  ['<!-- {docsify-ignore} -->', '<!-- {docsify-ignore-all} -->']
    //   },
      // 百度统计ID
      baiduTjId: "6b106096cc897dbbba878967ab356b7d",
      // 开启busuanzi
    //   busuanzi: true,
      // 开启远程md
      remoteMarkdown: {
        tag: 'rmd',
      },
      // giscus评论
      // giscus:{
      //   repo: "mg0324/docsify-comments",
      //   repoId: "R_kgDOI68LwA",
      //   category: "Announcements",
      //   categoryId: "DIC_kwDOI68LwM4CUDhM",
      //   mapping: "url",
      //   reactionsEnabled: "0",
      //   strict: "1",
      //   emitMetadata: "0",
      //   inputPosition: "bottom",
      //   theme: "light",
      //   lang: "zh-CN",
      //   loading: "lazy"
      // },
      valine:{
        appId: "PWeOPVm5fJ6yLIBxKCLeYFi9-gzGzoHsz",
        appKey: "S007S1OCruh1sObZw7bAXLmk"
      },
      markdown: {
        renderer: {
          code: function (code, lang) {
            if (lang === 'drawio') {
              if (window.drawioConverter) {
                console.log('drawio 转化中')
                return window.drawioConverter(code)
              } else {
                return `<div class='drawio-code'>${code}</div>`
              }
            } else if(lang === 'pdf'){
              var pdf_renderer = function(code, lang, verify) {
                  function unique_id_generator(){
                      function rand_gen(){
                          return Math.floor((Math.random()+1) * 65536).toString(16).substring(1);
                      }
                      return rand_gen() + rand_gen() + '-' + rand_gen() + '-' + rand_gen() + '-' + rand_gen() + '-' + rand_gen() + rand_gen() + rand_gen();
                  }
                  if(lang && !lang.localeCompare('pdf', 'en', {sensitivity: 'base'})){
                      if(verify){
                          return true;
                      }else{
                          var divId = "markdown_code_pdf_container_" + unique_id_generator().toString();
                          var container_list = new Array();
                          if(localStorage.getItem('pdf_container_list')){
                              container_list = JSON.parse(localStorage.getItem('pdf_container_list'));	
                          }
                          container_list.push({"pdf_location": code, "div_id": divId});
                          localStorage.setItem('pdf_container_list', JSON.stringify(container_list));
                          return (
                              '<div style="margin-top:'+ PDF_MARGIN_TOP +'; margin-bottom:'+ PDF_MARGIN_BOTTOM +';" id="'+ divId +'">'
                                  + '<a href="'+ code + '"> Link </a> to ' + code +
                              '</div>'
                          );
                      } 
                  }
                  return false;
              }
              if(pdf_renderer(code, lang, true)){
                return pdf_renderer(code, lang, false);
              }
            }else {
              return this.origin.code.apply(this, arguments);
            }
          }
        }
      },
      contributors: {
        repo: 'mg0324/docsify-template',
        ignores: [],
        style: {
            color: '#ffffff',
            bgColor: '#404040'
        },
        image: {
            size: 30,
            isRound: true,
            margin: '0.5em'
        },
        load: {
            isOpen: true,
            color: "#009999"
        }
      }
      //gitalk评论
      // gitalk: {
      //   clientID: 'a80e57a9ad7a92dd2c8d',
      //   clientSecret: 'c38424e2af55c1549f52de1564eb71b4a94c10ea',
      //   repo: 'docsify-note-02',
      //   owner: 'mg0324',
      //   admin: ['mg0324']
      // },
      // plugins: [
      //   function(hook, vm) {
      //     hook.init(function() {
      //       // 初始化完成后调用，只调用一次，没有参数。
      //       console.info("init!")
            
      //     });

      //     hook.beforeEach(function(content) {
      //       // 每次开始解析 Markdown 内容时调用
      //       // ...
      //       console.info("beforeEach!")
            
      //       return content;
      //     });

      //     hook.afterEach(function(html, next) {
      //       // 解析成 html 后调用。
      //       // beforeEach 和 afterEach 支持处理异步逻辑
      //       // ...
      //       // 异步处理完成后调用 next(html) 返回结果
      //       console.info("afterEach!")
      //       var busuanzi = '<div style="text-align:center;">本文阅读量<span id="busuanzi_value_page_pv"></span> 已有<span class="busuanzi-value" id="busuanzi_value_site_uv"></span>人访问 <span id="busuanzi_container_site_pv">总访问量<span id="busuanzi_value_site_pv"></span>次</span></div>';
      //       html = html + busuanzi;
      //       renderBusuanzi();
      //       next(html);
      //     });

      //     hook.doneEach(function() {
      //       // 每次路由切换时数据全部加载完成后调用，没有参数。
      //       // ...
      //       console.info("doneEach!")
      //     });

      //     hook.mounted(function() {
      //       // 初始化并第一次加载完成数据后调用，只触发一次，没有参数。
      //       console.info("mounted!")
            
      //     });

      //     hook.ready(function() {
      //       // 初始化并第一次加载完成数据后调用，没有参数。
      //       console.info("ready!")

            
      //     });
      //   }
      // ]
    }
  </script>

  <script src="//gcore.jsdelivr.net/npm/vue@2/dist/vue.min.js"></script>
  <!-- Docsify v4 -->
  <script src="//gcore.jsdelivr.net/npm/docsify@4.13.0/lib/docsify.js"></script>
  <!-- 搜索 -->
  <script src="//gcore.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
  <!-- 图片放大缩小支持 -->
  <script src="//gcore.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
  <!-- 拷贝文字内容 -->
  <!-- <script src="//gcore.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script> -->
  <!-- 字数插件 -->
  <script src="https://gcore.jsdelivr.net/npm/docsify-count@latest/dist/countable.min.js"></script>
  <!-- 分页导航 -->
  <!-- <script src="//gcore.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.js"></script> -->
  <!-- 侧边栏扩展与折叠 -->
  <script src="//gcore.jsdelivr.net/npm/docsify-sidebar-collapse/dist/docsify-sidebar-collapse.min.js"></script>
  <!-- valine -->
  <!-- <script src='//gcore.jsdelivr.net/npm/valine/dist/Valine.min.js'></script>
  <script src="https://gcore.jsdelivr.net/npm/docsify-mango-valine@1.1.1/dist/docsify-mango-valine.min.js"></script> -->
  <!-- busuanzi -->
  <script src="https://gcore.jsdelivr.net/npm/docsify-busuanzi@1.0.1/dist/docsify-busuanzi.min.js"></script>
  <!-- 页脚信息 -->
  <!-- <script src="//gcore.jsdelivr.net/npm/docsify-footer-enh/dist/docsify-footer-enh.min.js"></script> -->
  <!-- 最近更新时间 -->
  <script src="https://gcore.jsdelivr.net/npm/docsify-updated/src/time-updater.min.js"></script>
  <!-- flexible alerts -->
  <script src="https://gcore.jsdelivr.net/npm/docsify-plugin-flexible-alerts"></script>
  <!-- 美化进度条 -->
  <script src="https://gcore.jsdelivr.net/npm/docsify-progress@latest/dist/progress.min.js"></script>
  <!-- docsify-accordion -->
  <link rel="stylesheet" href="//gcore.jsdelivr.net/npm/docsify-accordion/src/style.css">
  <script src="//gcore.jsdelivr.net/npm/docsify-accordion/src/index.js"></script>
  <!-- docsify-tabs (latest v1.x.x) -->
  <script src="https://gcore.jsdelivr.net/npm/docsify-tabs@1"></script>
  <!-- docsify-backTop -->
  <script src="https://gcore.jsdelivr.net/gh/Sumsung524/docsify-backTop/dist/docsify-backTop.min.js"></script>
  <!-- docsify-plugin-toc -->
  <link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/docsify-plugin-toc@1.3.1/dist/light.css">
  <script src="https://gcore.jsdelivr.net/npm/docsify-plugin-toc@1.3.1/dist/docsify-plugin-toc.min.js"></script>
  <!-- 百度统计 -->
  <!-- <script src="https://gcore.jsdelivr.net/npm/docsify-baidu-tj@1.0.2/dist/docsify-baidu-tj.min.js"></script> -->
  <!-- giscus评论  -->
  <!-- <link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/docsify-giscus@1.0.2/dist/giscus.css">
  <script src="https://gcore.jsdelivr.net/npm/docsify-giscus@1.0.2/dist/docsify-giscus.min.js"></script> -->
  <!-- GitTalk评论 -->
  <!-- <link rel="stylesheet" href="//gcore.jsdelivr.net/npm/gitalk/dist/gitalk.css">
  <script src="//gcore.jsdelivr.net/npm/docsify/lib/plugins/gitalk.min.js"></script>
  <script src="//gcore.jsdelivr.net/npm/gitalk/dist/gitalk.min.js"></script>
  <script src="https://gcore.jsdelivr.net/npm/docsify-gitalk@1.0.0/dist/docsify-gitalk.min.js"></script> -->
  <!-- html preview demo-->
  <link rel="stylesheet" href="//gcore.jsdelivr.net/npm/docsify-demo@latest/dist/index.min.css"/>
  <script src="//gcore.jsdelivr.net/npm/docsify-demo@latest/dist/index.min.js"></script>
  <!-- remote-markdown -->
  <script src="//gcore.jsdelivr.net/npm/docsify-remote-markdown/dist/docsify-remote-markdown.min.js"></script>
  <!-- docsify-drawio -->
  <script src="https://gcore.jsdelivr.net/npm/docsify-drawio/viewer.min.js"></script>
  <script src='https://gcore.jsdelivr.net/npm/docsify-drawio/drawio.js'></script>
  <!-- docsify-pangu 加空格-->
  <script src="//gcore.jsdelivr.net/npm/docsify-pangu/lib/pangu.min.js"></script>
  <!-- docsify-kroki 支持全热门图形化语言-->
  <script src="//gcore.jsdelivr.net/npm/docsify-kroki"></script>
  <!-- docsify ads -->
  <script src="//gcore.jsdelivr.net/npm/docsify-ads@1.0.2/dist/docsify-ads.min.js"></script>
  <!-- docsify-contributors -->
  <!-- <script src="//gcore.jsdelivr.net/npm/docsify-contributors@latest/dist/index.min.js"></script> -->
  <!-- docsify pdf embed -->
  <script src="//gcore.jsdelivr.net/npm/pdfobject@2.2.8/pdfobject.min.js"></script> 
  <script src="//gcore.jsdelivr.net/npm/docsify-pdf-embed-plugin/src/docsify-pdf-embed.js"></script>
  <!-- 语法高亮 -->
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-c.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-cpp.js"></script>

<!-- 支持Katex语法 -->
<script src="https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked@4"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify-katex@latest/dist/docsify-katex.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script src="https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css" />
<script src="https://cdn.jsdelivr.net/npm/docsify-latex@0"></script>
</body>
</html>
